﻿<UserControl x:Class="Knowledgecast.Twitter.WPF.App.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Style x:Key="NormalText" TargetType="TextBlock">
            <Setter Property="FontSize" Value="15" />
        </Style>
        <Style x:Key="LoginTextBox" TargetType="TextBox">
            <Setter Property="Width" Value="200" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="BorderBrush" Value="Gray" />
            <Setter Property="BorderThickness" Value="2" />
            <Setter Property="Width" Value="250" />
        </Style>
        <Style x:Key="PasswordTextBox" TargetType="PasswordBox">
            <Setter Property="Width" Value="200" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="BorderBrush" Value="Gray" />
            <Setter Property="BorderThickness" Value="2" />
            <Setter Property="Width" Value="250" />
        </Style>
    </UserControl.Resources>
    <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="50">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="20" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="20" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="20" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="20" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>        
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <Image Source="/Knowledgecast.Twitter.WPF.App;component/Icons/twitter52.png" VerticalAlignment="Bottom" />
            <TextBlock FontSize="20" Text="Welcome to WinTweet" VerticalAlignment="Bottom" Margin="10,0,0,15" />
        </StackPanel>
        <TextBlock Grid.Row="1" Text="To begin, enter your twitter username and password:" Style="{StaticResource NormalText}"/>
        <TextBlock Grid.Row="3" Text="Twitter Username" Style="{StaticResource NormalText}"/>
        <TextBox Grid.Row="4" x:Name="txtUsername" Style="{StaticResource LoginTextBox}" />
        <TextBlock Grid.Row="6" Text="Twitter Password" Style="{StaticResource NormalText}"/>
        <PasswordBox Grid.Row="7" x:Name="txtPassword" Style="{StaticResource PasswordTextBox}" />
        <CheckBox Grid.Row="9" x:Name="chkRememberMe" Content="Remember me" />
        <Button Grid.Row="11" Content="Sign In" Width="100" HorizontalAlignment="Left" Click="Button_Click" />
    </Grid>
</UserControl>
